package priv.tuyou.bo;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * ztree树的节点数据结构 
 * @author：涂有
 * @date 2016年12月21日 上午12:46:43
 */
public class ZtreeNode {

	/**
	 * id
	 */
	protected long id;
	
	/**
	 * 节点名称
	 */
	protected String name;
	
	/**
	 * 节点图标
	 */
	protected String icon;
	
	/**
	 * 是否处于选中状态
	 */
	protected boolean checked;
	
	/**
	 * 是否存在子节点
	 */
	@JSONField(name="isParent")
	protected boolean isParent;
	
	public ZtreeNode(){}
	
	public ZtreeNode(long id, String name, boolean isParent) {
		
		super();
		this.id = id;
		this.name = name;
		this.isParent = isParent;
	}
	
	public ZtreeNode(long id, String name, String icon, boolean checked, boolean isParent) {
		
		super();
		this.id = id;
		this.name = name;
		this.icon = icon;
		this.checked = checked;
		this.isParent = isParent;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public boolean getIsParent() {
		return isParent;
	}

	public void setIsParent(boolean isParent) {
		this.isParent = isParent;
	}
	
}
